package com.lebang.mapper;

import com.lebang.domain.NewInviteTaskRecord;
import com.lebang.example.NewInviteTaskRecordExample;
import com.lebang.model.cences.InviteTaskModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * NewInviteTaskRecordMapper继承基类
 */
@Mapper
public interface NewInviteTaskRecordMapper extends MyBatisBaseDao<NewInviteTaskRecord, Integer, NewInviteTaskRecordExample> {

    NewInviteTaskRecord selectRecordByMemberId(@Param("memberId") String memberId, @Param("category") int category);

    List<NewInviteTaskRecord> selectAllRecordByInviteId(@Param("inviteId") String inviteId);

    Integer profit(@Param("memberId") String memberId, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    int countInviteRecordByMemberId(@Param("memberId") String memberId);

    List<InviteTaskModel> selectTodayTask(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);
}